<#include "../../page.ftl" />
<#assign security=JspTaglibs["/WEB-INF/security.tld"] />
<table id="authTable" class="table table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 35px;"><input id="checkAll" type="checkbox" value=""></th>
        <th>权限ID</th>
        <th>权限名称</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if authDatasList??>
        <#list authDatasList as authData>
        <tr>
            <td><input name="ids" type="checkbox" value="${authData.id?c}"></td>
            <td>${authData.authId!''}</td>
            <td>${authData.authName!''}</td>
            <td>${authData.remark!''}</td>
            <td>
                <@security.authorize ifAnyGranted="ROLE_AUTH_E">
                    <a class="btn btn-green btn-radio nopadding" title="编辑"
                       onclick="return modifyModuleAuth(${authData.id?c});"><i class="fa fa-edit"></i></a>
                </@security.authorize>
                <@security.authorize ifAnyGranted="ROLE_AUTH_ASSIGN_RESOURCE">
                    <a class="btn btn-green btn-radio nopadding" title="分配资源"
                       onclick="return popAssign('${authData.authId!''}');"><i class="fa fa-filter"></i></a>
                </@security.authorize>
            </td>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if authDatasTable??>
    <@page table=authDatasTable formId="search_authData_table"/>
</#if>